package com.singleton.pattern.singleton.demo;

import java.io.Serializable;

/**
 * @Classname TestMain
 * @Description TODO
 * @Date 2019/11/20 0020 15:39
 * @Created by 埔枘
 */
public class TestMain implements Serializable {

    public static void main(String[] args){
//        for(int i=0;i<10000;i++){
//            new Thread(new ExectorThread()).start();
//        }

        EnumSingleton instance = EnumSingleton.getInstance();
        instance.setData(new Object());
        System.out.println(instance.getData());
    }
}
